package com.example.common.constant.order;

import lombok.Getter;

/**
 * <p>
 *
 * </p>
 *
 * @author zyred
 * @since v 0.1
 **/
@Getter
public enum OrderStatusEnum {

    OBLIGATION(0, "待付款"),
    PAYED(1, "已付款"),
    SHIPPED(2, "已发货"),
    COMPLETED(3, "已完成"),
    CANCEL(4, "已关闭"),
    AFTER_SALE(5, "售后中"),
    AFTER_FINISH(6, "售后完");

    /*
        订单状态【0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单】
     */

    private final int code;
    private final String msg;

    OrderStatusEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
